﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pan.Common;

public partial class Pages_Admin_ReviewAnswer : NoTheme
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int rid = int.Parse(Request["rid"]);
        Tuan.Model.Review review1 = new Tuan.Model.Review();
        Tuan.BLL.Review update1 = new Tuan.BLL.Review();
        review1 = update1.GetModel(rid);
        LabelQuesShow.Text = review1.Body.ToString();
    }

    protected void ButtonConfirm_Click(object sender, EventArgs e)
    {
        int rid = int.Parse(Request["rid"]);
        Tuan.Model.Review review1 = new Tuan.Model.Review();
        Tuan.BLL.Review update1 = new Tuan.BLL.Review();
        review1 = update1.GetModel(rid);
        LabelAns.Text = review1.Body.ToString();
        review1.Reply=AnsText.Text.ToString();
        update1.Update(review1);
        Response.Redirect("ReviewList.aspx");
    }
}
